package com.forekenow.Demo4.exercise30726;

public abstract class Animal {
    private String name;
    private int legNum;
    public abstract void shout();

    public String getName() {
        return name;
    }

    public int getLegNum() {
        return legNum;
    }
    public Animal(String name,int legNum) {
        this.name =name;
        this.legNum = legNum;
    }

}
